<?php

namespace App\Http\Requests\Api;

class DealerRequest extends FormRequest
{
    public function rules()
    {
        $arr = [
            'city' => 'required|string',
            'vehicle_series_id' => 'exists:vehicle_series,id',
        ];
        return $arr;
    }

    public function attributes()
    {
        return [
            'city' => '城市',
            'vehicle_series_id' => '车系ID'
        ];
    }

    public function messages()
    {
        return [];
    }
}
